﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using HKB.Common;
using HKB.Web.Admin;

public partial class Admin_admin_index : Admin, IRequiresSessionState
{
    public string Admin_Url = "admin_main.aspx";
    private string _sitename = null;
    protected DefaultProfile profile
    {
        get
        {
            return (DefaultProfile)this.Context.Profile;
        }
    }
    protected global_asax applicationInstance
    {
        get
        {
            return (global_asax)this.Context.ApplicationInstance;
        }
    }
    public string SiteName
    {
        get
        {
            string sitename;
            if (this._sitename == null)
            {
                this._sitename = this.config["SiteName"].ToString();
                sitename = this._sitename;
            }
            else
            {
                sitename = this._sitename;
            }
            return sitename;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        this.LoginName.Text = base.admin.AdminName + " " + base.admin.GetAccess();
        if (!string.IsNullOrEmpty(Fetch.Get("MainUrl")) && Fetch.Get("MainUrl") != "")
        {
            this.Admin_Url = Fetch.Get("MainUrl");
        }
    }
}